home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compendium Deluxe 2
/
LSD and 17bit Compendium Deluxe - Volume II.iso
/
a
/
prog
/
asmsrc
/
technowar.lha
/
data
/
techno
/
bootload.S
< prev
next >
Wrap
Text File
|
1990-09-13
|
590b
|
43 lines
section ddp,code_c
doio = -456
boot: dc.b "DOS",0
dc.l 0
dc.l 880
go: bra.s go2
dc.b "TWAR"
go2:
movem.l d0-d7/a0-a6,-(a7)
move.w #0,d7
claim: move.l 4,a6
move.l #250*1000,d0
move.l #$10001,d1
jsr -198(a6) ; alloc
move.l d0,$80
add.l #1,d7
cmp.l #50,d7
beq halfmeg
cmp.l #$80000,d0
blt claim
movem.l (a7)+,d0-d7/a0-a6
move.w #2,28(a1) ; 28 = command
move.l #$14000,36(a1) ; 36 = length
move.l #$30000,40(a1) ; 40 = data
move.l #$c8000,44(a1) ; 44 = disk address
jsr doio(a6)
jmp $30000
halfmeg:
move.w $dff006,$dff180
bra halfmeg
dcb.b 2000,0